<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table class="table table-striped">
    <thead>
    <tr>
        <th scope="col">id</th>
        <th scope="col">用户名</th>
        <th scope="col">姓名</th>
        <th scope="col">性别</th>
        <th scope="col">出生日期</th>
        <th scope="col">电话</th>
        <th scope="col">邮箱</th>
        <th scope="col">qq</th>
        <th scope="col">头像</th>
        <th scope="col">创建时间</th>
    </tr>
    </thead>
    <tbody>
    <!--    list 存储在request中的数据  session.list(存储在session中)-->
    <tr th:each="user :${all}">
        <th scope="row" th:text="${user.id}"></th>
        <td th:text="${user.username}"></td>
        <td th:text="${user.name}"></td>
        <td th:text="${user.gender}"></td>
        <td th:text="${user.birthday}"></td>
        <td th:text="${user.phone}"></td>
        <td th:text="${user.email}"></td>
        <td th:text="${user.qq}"></td>
        <td th:text="${user.img}"></td>
        <td th:text="${user.createDate}"></td>
        <td>
            <a href="">删除</a>
            <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal"
                    th:data-whatever="${user.id}">修改
            </button>
        </td>
    </tr>
    </tbody>
</table>
</body>
</html>